	<layout name="newlayout" />
		<script src="__JS__jquery.form.js" type="text/javascript"></script>
<STYLE>
   .clear {  clear: both;   }
	.input_class{width:15px;height:10px;}
.num{margin: 0 5px 0 0;padding: 3px 6px;color: #57a000;text-decoration: none;border: 1px solid #ddd;-webkit-border-radius: 4px;border-radius: 4px;}
.current{margin: 0 5px 0 0;padding: 3px 6px;color: #57a000;text-decoration: none;border: 1px solid #ddd;-webkit-border-radius: 4px;border-radius: 4px;background: #469400 url('{__IMG__}bg-button-green.gif') top left repeat-x !important;border-color: #459300 !important;color: #fff !important;}
.star{color:red;}
	</STYLE>
	<div id="main-content"> <!-- Main Content Section with everything -->
			<!-- Page Head -->
			<div class="content-box"><!-- Start Content Box -->
				<div class="content-box-header">
					<h3>广告列表</h3>
					<div class="clear"></div>
				</div> <!-- End .content-box-header -->
				<div class="content-box-content">
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						<div class="notification attention png_bg">
							<a href="#" class="close"><img src="__IMG__cross_grey_small.png" title="Close this notification" alt="close" /></a>
							<div>
								提示！！
							</div>
						</div>
						<table>
							<thead>
								<tr>
								   <th>ID</th>
								   <th>标题</th>
								   <th>类名</th>
								   <th>日期</th>
								   <th>操作</th>
								</tr>
							</thead>
							<tfoot>
								<tr>
									<td colspan="6">
										<div class="bulk-actions align-left">
											<a class="button" href="/admin/adver/addImg"    >新增</a>
											<a href="/admin/adver/listsType" class="button">分类</a>
											<a href="/admin/adver/index" class="button">图片</a>
										</div>
										<div class="pagination">
										{$show}
										</div> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
							<tbody>
							<form action="/admin/WebSet/listorder" method="post" id="listorder">
								<input type="hidden" name="cate_id" value="{$cate['id']}"/>
								<foreach name="list" item="vo">
								<tr>
									<td>{$vo['id']}</td>
									<td>{$vo['title']}</td>
									<td>{$vo.a_title}</td>
									<td>{$vo.up_date}</td>
									<td>
										 <a  href="/admin/adver/upImg?id={$vo.id}"   title="修改"  ><img src="__IMG__pencil.png" alt="Edit" /></a>
										 <a href="javascript:"  title="删除"><img src="__IMG__cross.png" alt="Delete"  onclick="adverDe({$vo.id});"/></a> 
									</td>
								</tr>
									</foreach>
							</form>
							</tbody>
						</table>
					</div> 
				</div>
			</div> 
		</div>
<script>
//删除文章
function adverDe(id){
	  if(confirm("确定删除?")){
		  $.post("/admin/adver/imgDe",{id:id},function(data){
	        	 location.reload();
	             });     
		  };
	  }
	</script>